import request from '@/utils/request'

// 查询列表
export function cloudUpList(query) {
  return request({
    url: '/activiti/CloudUp/list',
    method: 'get',
    params: query
  })
}
// 查询我的列表
export function cloudUpListMine(query) {
  return request({
    url: '/activiti/CloudUp/list/mine',
    method: 'get',
    params: query
  })
}
// 查询显示列表字段
export function cloudUpreportCloumns(query) {
  return request({
    url: '/activiti/CloudUp/reportCloumns',
    method: 'get',
    params: query
  })
}
// 查询列表
export function AllcloudUpList(query) {
  return request({
    url: '/activiti/CloudUp/listBySelect',
    method: 'get',
    params: query
  })
}

// 查询基本详情
export function cloudUpDetail(id) {
  return request({
    url: '/activiti/CloudUp/'+id,
    method: 'get',
  })
}
// 查询所有详情
export function cloudUpConfInfo(id) {
  return request({
    url: '/activiti/CloudUp/'+id,
    method: 'get',
  })
}

// 新增
export function addCloudUp(data) {
  return request({
    url: '/activiti/CloudUp',
    method: 'post',
    data: data
  })
}
// 新增
export function DelectUploadFile(id) {
  return request({
    url: '/system/UploadFile/remove/'+ id,
    method: 'DELETE',
  })
}
// 新增
export function hosts(id) {
  return request({
    url: '/activiti/hosts/'+ id,
    method: 'get',
  })
}
// 确认资源信息
export function PtuConfirms(id) {
  return request({
    url: '/confirm/CloudUp/'+ id,
    method: 'PUT',
  })
}
// 确认修改资源信息
export function ConfirmCloudUp(query) {
  return request({
    url: '/activiti/CloudUp',
    method: 'PUT',
    data: query
  })
}
// 刪除上云系统
export function DELETECloudUp(query,id) {
  return request({
    url: '/activiti/CloudUp/' + id,
    method: 'DELETE',
    params: query
  })
}

export function exportCloudUp(query) {
  return request({
    url: '/activiti/CloudUp/export',
    method: 'get',
    params: query
  })
}
export function getResourcesDate(id) {
  return request({
    url: '/cost/getResourcesDate/' + id,
    method: 'get',
  })
}

export function cloudExit(data) {
  return request({
    url: '/cloudExit/list',
    method: 'get',
  })
}

export function cloudExitDetails(data) {
  return request({
    url: '/cloudExit/'+data.id,
    method: 'get',
  })
}

